package com.woniuxy.contractsign.service.impl;


import com.woniuxy.commons.entity.ContractSign;
import com.woniuxy.contractsign.mapper.ContractSignMapper;
import com.woniuxy.contractsign.service.ContractSignService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author author
 * @create 2021-11-10 11:24
 */
@Service
public class ContractSignServiceImpl implements ContractSignService {

    @Resource
    private ContractSignMapper contractSignMapper;


    @Override
    public void addContractSign(ContractSign contractSign) {
        contractSignMapper.addContractSign(contractSign);
    }

    @Override
    public void delectContractSignByid(int consignid) {
        contractSignMapper.delectContractSignByid(consignid);
    }

    @Override
    public void updateContractSign(ContractSign contractSign) {
        contractSignMapper.updateContractSign(contractSign);
    }

    @Override
    public void selectContractSignByconsignid(Integer consignid) {
        contractSignMapper.selectContractSignByconsignid(consignid);
    }

    @Override
    public List<ContractSign> selectAllContractSignByPage(ContractSign contractSign, Integer pageIndex, Integer pageSize) {
        return contractSignMapper.selectAllContractSignByPage(contractSign, pageIndex, pageSize);
    }

    @Override
    public int selectContractCountSignByPage(ContractSign contractSign) {
        return contractSignMapper.selectContractCountSignByPage(contractSign);
    }
}
